package org.yefei.homeworkday12;

public class TestSwan {

	public static void main(String[] args) {
		Swan[] sw = new Swan[5];
		for (int i = 0; i < sw.length; i++) {// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
			sw[i] = new Swan("黑色", 19 + i, '公');
		}
//		// 第一只天鹅
//		sw[0].color = "黑色";
//		sw[0].sex = '公';
//		sw[0].weight = 19;
//		// 第二只天鹅
//		sw[1].color = "白色";
//		sw[1].sex = '母';
//		sw[1].weight = 16;
		for (int i = 0; i < sw.length; i++) {
			sw[i].show();
		}
	}

	}

